import { ref } from 'vue'
export function useColumns() {
  const hiddenColumns = ref(new Set())

  const changeColumn = (prop) => {
    if (hiddenColumns.value.has(prop)) {
      hiddenColumns.value.delete(prop)
    } else {
      hiddenColumns.value.add(prop)
    }
  }
  return {
    hiddenColumns,
    changeColumn
  }
}
